<template>
  <div>
    <van-nav-bar
        :title="title"
      
      
        />
  </div>
</template>

<script>
export default {
  name: 'NavBar',
  props: {
    title: String,
    icon: Boolean,
    router: String
  },
  data () {
    return {

    }
  },
  methods: {
    onClickLeft() {
      this.$router.push(this.router)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .van-nav-bar{
    background-color:#1C5697;
  }
  .van-nav-bar__title{
    color: white;
  }
  .van-nav-bar__text{
    color: white;
  }
  .van-icon{
    color: white;
  }
  .van-nav-bar__text{
    background-color: #1C5697
  }
</style>
